package com.ttit.core.array;

import java.util.ArrayList;
import java.util.HashSet;

public class Array {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList();
        list.add("abc");
        list.add("abc");
        list.add("aaa");
        list.add("bbb");
        System.out.println(list);
        HashSet h = new HashSet(list);
        list.clear();
        list.addAll(h);
        System.out.println(list);
    }
}
